import api from "@/config/api";
import http from "@/utils/http";
import store from "@/store/index";

/**
 * 权限认证模块
 */
export const tabsService = {
    /**
     * 获取产品分类一级
     */
    classifyList() {
        !store.state.tabs.classifyList?.length && http.get(api.classifyList, {}, (classifyList: any) => {
            store.commit("tabs/setClassifyList", classifyList);
        })
    }
};